package com.cm;

public interface DrinkMaker {
    /**
     * 执行命令
     * @param command 指令
     *  protocol:
     *           "T:1:0" (com.cm.drinks.Drink maker makes 1 tea with 1 sugar and a stick)
     *           "H::" (com.cm.drinks.Drink maker makes 1 chocolate with no sugar and therefore no stick)
     *           "C:2:0" (com.cm.drinks.Drink maker makes 1 coffee with 2 sugars and a stick)
     *           "M:message-content" (com.cm.drinks.Drink maker forwards any message received onto the coffee machine interface for the customer to see)
     */
    void execute(String command);
}
